package com.neutech.runtime;

import com.neutech.util.ImageUtil;

import java.awt.*;

public class PencilDown extends Pencil{

    private Image image;
    public  PencilDown(int x,int y){
        init(x,y);
    }

    private void init(int x, int y) {
        image = ImageUtil.get("pd");
        setX(x);
        setY(y);
        setWidth(image.getWidth(null));
        setHeight(image.getHeight(null));
    }

    @Override
    public void draw(Graphics g) {
        g.drawImage(image,getX(),getY(),null);
    }
}
